<?php
include_once dirname ( __FILE__ ) . '/config.php';
class DbConnect {
	const PREFIX = "k5_";
	protected $conn;
	public function __construct() {
	}
	public function connect() {
		$this->conn = new mysqli ( DB_HOST, DB_USERNAME, DB_PASSWORD, DB_NAME );
		if (mysqli_connect_errno ()) {
			echo "Failed to connect to MySQL: " . mysqli_connect_error ();
		}
		return $this->conn;
	}
}
?>